package com.practice.springboot_01_zwj.mapper;

import com.practice.springboot_01_zwj.entity.ProjectReport;
import com.practice.springboot_01_zwj.entity.ReportDetails;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ReportDetailsMapper {
    // 根据rid查询二级菜单
    ReportDetails selectByRid(Integer rid);

    // 根据keyId查询二级菜单列表
    List<ReportDetails> selectByKeyId(Integer keyId);

    // 新增二级菜单
    int insert(ReportDetails reportDetails);

    // 更新二级菜单
    int update(ReportDetails reportDetails);

    // 删除二级菜单
    int deleteByRid(Integer rid);

    // 根据keyId删除所有二级菜单
    int deleteByKeyId(Integer keyId);
}
